﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Main.Master" AutoEventWireup="true" CodeBehind="EditCvDetails.aspx.cs" Inherits="LAB3_Cv.EditCvDetails" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainPlaceholder" runat="server">

    <%--ContentWithInfoHolder--%>
    <div id="contentCvHolder">

        <%--UserdetailsContent--%>
        <div id="userdetailsContentholder">

            <%--Header--%>
            <div>
                <h1>Mitt CV:</h1>
            </div>

            <%--CVInfoBox--%>
            <div id="cvInfoBox">

                <h5 style="margin-bottom: 17px">Info:</h5>
                <asp:ListView ID="ListViewInfoEdit" runat="server" OnItemCommand="ListViewInfoEdit_OnItemCommand">
                    <ItemTemplate>
                        <tr>
                            <td>
                                <asp:Label runat="server" Text="Övrigt:"></asp:Label>
                                <asp:TextBox runat="server" Text='<%#Eval("Miscellaneous") %>' TextMode="MultiLine" ID="TextBoxMisc"></asp:TextBox><br />
                            </td>
                            <td>
                                <asp:Label runat="server" Text="Intressen:"></asp:Label>
                                <asp:TextBox runat="server" Text='<%#Eval("Interests") %>' TextMode="MultiLine" ID="TextBoxIntresst"></asp:TextBox><br />
                            </td>
                            <td>
                                <asp:Label runat="server" Text="Personliga Egenskaper:"></asp:Label>
                                <asp:TextBox runat="server" Text='<%#Eval("PersonalQualities") %>' TextMode="MultiLine" ID="TextBoxPersonalQual"></asp:TextBox><br />
                            </td>
                        </tr>
                        <br />
                        <asp:Button ID="ButtonSaveChanges" runat="server" Text="Spara Info Ändringar" CommandName="Save" />
                    </ItemTemplate>
                </asp:ListView>

                <h5>Utbildning:</h5>
                <asp:ListView ID="ListViewEducationEdit" runat="server" OnItemCommand="ListViewEducationEdit_OnItemCommand" OnItemDeleting="ListViewEducationEdit_ItemDeleting">
                    <ItemTemplate>
                        <asp:TextBox runat="server" Text='<%#Eval("Desription") %>' ID="TextBoxEducation"></asp:TextBox>
                        <asp:LinkButton ID="ButtonSaveChangesEducation" CommandName="Save" runat="server" Text="Spara ändring"></asp:LinkButton>
                        <asp:LinkButton ID="ButtonDeleteEducation" CommandName="Delete" runat="server" Text="Ta bort rad"></asp:LinkButton>
                        <br />
                    </ItemTemplate>
                </asp:ListView>
                <asp:Button ID="ButtonAddEducation" runat="server" Text="Lägg till Utbildning" OnClick="ButtonAddEducation_Click" />

                <h5>Arbetslivserfarenheter:</h5>
                <asp:ListView ID="ListViewExperiencesEdit" runat="server" OnItemCommand="ListViewExperiencesEdit_OnItemCommand" OnItemDeleting="ListViewExperiencesEdit_ItemDeleting">
                    <ItemTemplate>
                        <asp:TextBox runat="server" Text='<%#Eval("Description") %>' ID="TextBoxExperience"></asp:TextBox>
                        <asp:LinkButton ID="ButtonSaveChangesExperiences" runat="server" Text="Spara ändring" CommandName="Save" />
                        <asp:LinkButton ID="ButtonDeleteExperience" CommandName="Delete" runat="server" Text="Ta bort rad"></asp:LinkButton>
                        <br />
                    </ItemTemplate>
                </asp:ListView>
                <asp:Button ID="ButtonAddExperience" runat="server" Text="Lägg till Arbetserfarenhet" OnClick="ButtonAddExperience_Click" />

                <h5>Meriter:</h5>
                <asp:ListView ID="ListViewMeritsEdit" runat="server" OnItemCommand="ListViewMeritsEdit_OnItemCommand" OnItemDeleting="ListViewMeritsEdit_ItemDeleting">
                    <ItemTemplate>
                        <asp:TextBox runat="server" Text='<%#Eval("Desription") %>' ID="TextBoxMerits"></asp:TextBox>
                        <asp:LinkButton ID="ButtonSaveChangesMerits" runat="server" Text="Spara ändring" CommandName="Save" />
                        <asp:LinkButton ID="ButtonDeleteMerit" CommandName="Delete" Text="Ta bort rad" runat="server"></asp:LinkButton>
                        <br />
                    </ItemTemplate>
                </asp:ListView>
                <asp:Button ID="ButtonAddMerit" runat="server" Text="Lägg till Merit" OnClick="ButtonAddMerit_Click" /><br />
            </div>
        </div>
    </div>
    <br />
</asp:Content>
